package com.ebring.shareEducation.service.admin;


import com.ebring.shareEducation.utils.RspMsg;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
public class InstitutionClientServiceFallbackFactory implements FallbackFactory<InstitutionClientService> {

    @Override
    public InstitutionClientService create(Throwable throwable) {
        return new InstitutionClientService() {
            @Override
            public RspMsg<Map> getLower(String institutionId) {
                return null;
            }
        };
    }
}
